import 'dart:math';
String createToken() {
  return createRandomNum(25);
}

///生成随机字符串
String createRandomNum(int lenth) {
  var alphabet = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM';
  var strlenght = lenth;

  /// 生成的字符串固定长度
  var left = '';
  for (var i = 0; i < strlenght; i++) {
    left = left + alphabet[Random().nextInt(alphabet.length)];
  }
  return left;
}

///生成随机数字
String createRandomVerifyNum(int lenth) {
  var alphabet = '0123456789';
  var strlenght = lenth;

  /// 生成的字符串固定长度
  var left = '';
  for (var i = 0; i < strlenght; i++) {
    left = left + alphabet[Random().nextInt(alphabet.length)];
  }
  return left;
}
